package com.tubang.logistics.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.tubang.common.entity.BaseEntity;

/**
 * <p>
 * 
 * </p>
 *
 * @author wsl
 * @since 2017-11-21
 */
@TableName("tb_message")
public class MessageEntity extends BaseEntity<MessageEntity> {

    private static final long serialVersionUID = 1L;

    /**
     * 消息内容
     */
	private String content;
    /**
     * 标题
     */
	private String title;
    /**
     * 消息类型
     * 10000-通知；10002-待办；10003-公告
     */
	private String category;
	/**
	 * 消息类型
	 * 10000-通知；10002-待办；10003-公告
	 */
	@TableField("category_desc")
	private String categoryDesc;
	/**
	 * 发消息人
	 */
	@TableField("from_user_name")
	private String fromUserName;
    /**
     * 发送消息id
     */
	@TableField("from_user_id")
	private String fromUserId;
    /**
     * 接收消息id
     */
	@TableField("to_user_id")
	private String toUserId;
    /**
     * 消息状态是否已读
     */
	@TableField("status_flag")
	private String statusFlag;


	public String getContent() {
		return content;
	}

	public MessageEntity setContent(String content) {
		this.content = content;
		return this;
	}

	public String getTitle() {
		return title;
	}

	public MessageEntity setTitle(String title) {
		this.title = title;
		return this;
	}

	public String getCategory() {
		return category;
	}

	public MessageEntity setCategory(String category) {
		this.category = category;
		return this;
	}

	public String getCategoryDesc() {
		return categoryDesc;
	}

	public MessageEntity setCategoryDesc(String categoryDesc) {
		this.categoryDesc = categoryDesc;
		return this;
	}

	public String getFromUserName() {
		return fromUserName;
	}
	
	public MessageEntity setFromUserName(String fromUserName) {
		this.fromUserName = fromUserName;
		return this;
	}
	
	public String getFromUserId() {
		return fromUserId;
	}

	public MessageEntity setFromUserId(String fromUserId) {
		this.fromUserId = fromUserId;
		return this;
	}

	public String getToUserId() {
		return toUserId;
	}

	public MessageEntity setToUserId(String toUserId) {
		this.toUserId = toUserId;
		return this;
	}

	public String getStatusFlag() {
		return statusFlag;
	}

	public MessageEntity setStatusFlag(String statusFlag) {
		this.statusFlag = statusFlag;
		return this;
	}

	@Override
	public String toString() {
		return "Message{" +
			"content=" + content +
			", title=" + title +
			", category=" + category +
			", categoryDesc=" + categoryDesc +
			", fromUserName=" + fromUserName +
			", fromUserId=" + fromUserId +
			", toUserId=" + toUserId +
			", statusFlag=" + statusFlag +
			"}";
	}
}
